package com.zclever.kstarwar.vo;

import com.google.gson.annotations.Expose;

/**
 * 用户实体类
 * @author zclever
 * @email 304078606@qq.com
 * @date 2019/8/8
 */
public class User {
    private int uid;
    private String uname;
    private int victory;                      //用户连胜次数
    private transient boolean isGaming;       //是否战斗中
    private transient boolean isRequesting;   //是否请求战斗
    private boolean isRobot;                  //是否是机器人

    public User() {
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public int getVictory() {
        return victory;
    }

    public void setVictory(int victory) {
        this.victory = victory;
    }

    public boolean isGaming() {
        return isGaming;
    }

    public void setGaming(boolean gaming) {
        isGaming = gaming;
    }

    public boolean isRequesting() {
        return isRequesting;
    }

    public void setRequesting(boolean requesting) {
        isRequesting = requesting;
    }

    public boolean isRobot() {
        return isRobot;
    }

    public void setRobot(boolean robot) {
        isRobot = robot;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", victory=" + victory +
                ", isGaming=" + isGaming +
                ", isRequesting=" + isRequesting +
                ", isRobot=" + isRobot +
                '}';
    }
}
